package com.suli.multimedia.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author SuLi
 * @since 2022-04-26
 */
@Getter
@Setter
@ToString
@TableName("note")
public class Note implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 留言id
     */
    @TableId(value = "note_id", type = IdType.AUTO)
    private Integer noteId;

    /**
     * 留言内容
     */
    @TableField("note_content")
    private String noteContent;

    /**
     * 留言时间
     */
    @TableField(value = "note_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date noteTime;

    /**
     * 留言用户
     */
    @TableField(value = "user_name")
    private String userName;
}
